package com.sea.example.controller;

import com.sea.example.service.CoordinateTimeService;
import com.sea.example.utils.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Description:
 * Author: hcxu
 * Time: 2024/9/5 3:21 PM
 */
@RestController
@RequestMapping("/coordinateTime")
@Slf4j
public class CoordinateTimeController {
    @Autowired
    private CoordinateTimeService coordinateTimeService;

    @GetMapping("/getTimeList")
    public ApiResponse<List<Long>> getTimeList(){
        return ApiResponse.success(coordinateTimeService.getTimeList());
    }
}
